package com.example.mm.bajie.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;

import com.example.mm.bajie.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Describe 拨号fragment
 * Created by xupeng on 2016/8/22 15:48
 * Email xupeng@csii.com.cn
 */
public class DialFragment extends Fragment {
    @BindView(R.id.list_dial)
    ListView listDial;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view =inflater.inflate(R.layout.fragment_dial, container, false);
        ButterKnife.bind(this, super.onCreateView(inflater, container, savedInstanceState));
        init();
        return view;
    }
    private void init(){
        listDial.setAdapter(new DialAdapter());
    }
    private class DialAdapter extends BaseAdapter{
        LayoutInflater infla ter;

        @Override
        public int getCount() {
            return 0;
        }

        @Override
        public Object getItem(int position) {
            return null;
        }

        @Override
        public long getItemId(int position) {
            return 0;
        }

        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            ViewHolder viewHolder;
            if (convertView==null){
                viewHolder=new ViewHolder();
                viewHolder.tv_phone=
            }
            return null;
        }
        private class ViewHolder{
            TextView tv_phone,tv_time;
        }
    }
}
